﻿/*
 * Programmer: JR Padfield
 * Project: Crzy Math Tax
 * Description: Handles the tax information. Day, month, year, per sale
 * Version: 1
 * Date: 05/27/2013
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crzy_Math
{
    public static class Tax
    {

        #region Tax Fields

        private static double taxAmount;
        private static double taxPercent; // Is set by user in main program

        private static List<double> taxADay;
        private static List<double> taxAMonth;
        private static List<double> taxAYear;
        
        #endregion

        #region Tax Properties

        public static double TaxAmount
        {
            get { return taxAmount; }
            set { taxAmount = value; }
        }

        public static double TaxPercent
        {
            get { return taxPercent; }
            set { taxPercent = value; }
        }

        #endregion

        #region Tax Methods
        
        public double CalcualateTax()
        {
            TaxAmount += TaxPercent * Totals.SubTotal;
            return TaxAmount;
        }

        #endregion
    }
}
